<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../include/taglibs.jsp"%>

<fmt:message key="new.header" var="newGame" scope="page"/>
<fmt:message key="new.title" var="titleLabel" scope="page"/>
<fmt:message key="new.size" var="sizeLabel" scope="page"/>
<fmt:message key="new.description" var="descriptionLabel" scope="page"/>
<fmt:message key="new.createNewGame" var="createNewGame" scope="page"/>

<h1>${newGame}</h1>

<c:url var="gameUrl" value="/game/" />

<div><div style="float:left; width:200px">${titleLabel}</div> ${title}</div>
<div><div style="float:left; width:200px">${sizeLabel}</div> ${size}</div>
<div><div style="float:left; width:200px">${descriptionLabel}</div> ${description}</div>

<div>
<form method="post" action="${gameUrl}">
  <input type="hidden" name="title" value="${title}" />
  <input type="hidden" name="size" value="${size}" />
  <input type="hidden" name="description" value="${description}" />
  <c:forEach begin="1" end="${buzzwordCount}" var="i">  
    <div><div style="float:left; text-align:right; width:30px; ">${i}. </div> <input type="text" name="buzzword_${i}" /></div>  
  </c:forEach>  
  
  <input type="submit" value="${createNewGame}"/>
  
</form>
</div>